package com.mystudy.management.usermanagement.service;

import com.mystudy.management.usermanagement.dao.pojo.RequestTrace;
import com.mystudy.management.usermanagement.dao.pojo.VisitTrace;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface Index2_1Service {

    List<VisitTrace> selectAllLog();

    //通过用户id查询访问记录
    List<VisitTrace> selectLogByCondition(Integer id);

    //通过IP查询所有记录
    List<VisitTrace> selectLogByCondition(String IP);

    List<VisitTrace> selectLogByCondition(Integer id, Date startDate, Date endDate);

    List<VisitTrace> selectLogByCondition(String IP, Date startDate,Date endDate);

    Map<String,Integer[]> deleteLogByConditions(Integer[] logIds);


    List<RequestTrace> selectAllRequestLog();

    List<RequestTrace> selectRequestLogByCondition(String IP);

    List<RequestTrace> selectRequestLogByCondition(String IP, Date startDate,Date endDate);

    List<RequestTrace> selectRequestLogByCondition( Date startDate,Date endDate);

    Map<String,Integer[]> deleteRequestLogByConditions(Integer[] logIds);

}
